projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a4f0c
)
recorder: show color information for color nodes
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 28 Sep 2017 19:08:08 +0000
(15:08 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 28 Sep 2017 19:54:30 +0000
(15:54 -0400)
A first step towards showing more information for render nodes.
gtk/inspector/recorder.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/recorder.c
b/gtk/inspector/recorder.c
index 2ffbcdb05f21d37d18b63cb76ca4a84ed6b7123e..df710aece1cae19587a5adbcbee46b63a6271b05 100644
(file)
--- a/
gtk/inspector/recorder.c
+++ b/
gtk/inspector/recorder.c
@@
-224,6
+224,18
@@
populate_render_node_properties (GtkListStore *store,
0, "Has Texture",
1, gsk_render_node_get_node_type (node) == GSK_TEXTURE_NODE ? "TRUE" : "FALSE",
-1);
+
+ if (gsk_render_node_get_node_type (node) == GSK_COLOR_NODE)
+ {
+ const GdkRGBA *color = gsk_color_node_peek_color (node);
+ char *text = gdk_rgba_to_string (color);
+
+ gtk_list_store_insert_with_values (store, NULL, -1,
+ 0, "Color",
+ 1, text,
+ -1);
+ g_free (text);
+ }
}
static void